/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/3/20
 * Time: 10:29
 * Description: No Description
 */
public class TestDemo1 {
    public static void Add(int n) {
        if(n < 9 ) {
            System.out.print((n % 10+" "));
            return;
        }
        System.out.print((n % 10+" "));
        Add(n/10);
    }
    public static void main(String[] args) {
        Add(1234);
    }
    public static int add(int a,int b) {
        return a + b;
    }
    public static int add(int a, int b, int c) {
        return a+b+c;
    }
    public static double add(int a ,int b ,double c) {
        return a+b+c;
    }
    public static void main3(String[] args) {
        System.out.println(add(1, 2));
        System.out.println(add(1, 2, 3));
        System.out.println(add(1, 2, 3.0));
    }
   /* public static String myToString(int[] arr) {
        int a = Integer.valueOf('1');*/
        /*for(int i = 0;i < arr.length;i++) {
            byte ret=Integer.valueO;
        }
        return ret;*/


        public static void main2(String[] args) {
            int[] arr = {1,2,3,4,5};
            String a = "";
            for(int i = 0;i<arr.length;i++) {
               a = String.valueOf(arr[i]);
                System.out.println(a);
            }


        }
        /*String s =myToString(arr);
        System.out.println(s);
    }*/

    /*public static void fun(int[] arr,int n ) {
        if(n == 0) {
          return;
        }
        System.out.print(arr[n-1]+" ");
        fun(arr, n - 1);


    }
    public static void main1(String[] args) {
        int[] arr = {1,2,3,4,5};
        fun(arr,arr.length);
    }*/
}